package main

import "fmt"

func main() {
	//go 直至多变量同时定义与赋值
	var a, b int = 1, 2
	fmt.Printf("a = %d, b = %d\n", a, b)
	//利用同时赋值机型内容转换
	a, b = b, a
	fmt.Printf("a = %d, b = %d\n", a, b)
	//声明但不赋值，则会自动赋予零值。如int会被自动赋予0
}
